package com.fr.report;

import com.fr.base.ColumnRow;

public class DefaultCellElement extends AbstractCellElement
{
  protected int column;
  protected int row;
  protected int columnSpan;
  protected int rowSpan;

  public DefaultCellElement()
  {
    this(0, 0);
  }

  public DefaultCellElement(int paramInt1, int paramInt2)
  {
    this(paramInt1, paramInt2, null);
  }

  public DefaultCellElement(int paramInt1, int paramInt2, Object paramObject)
  {
    this(paramInt1, paramInt2, 1, 1, paramObject);
  }

  public DefaultCellElement(int paramInt1, int paramInt2, int paramInt3, int paramInt4, Object paramObject)
  {
    this.column = 0;
    this.row = 0;
    this.columnSpan = 1;
    this.rowSpan = 1;
    this.column = paramInt1;
    this.row = paramInt2;
    this.columnSpan = paramInt3;
    this.rowSpan = paramInt4;
    setValue(paramObject);
  }

  public int getColumn()
  {
    return this.column;
  }

  public void setColumn(int paramInt)
  {
    this.column = paramInt;
  }

  public int getColumnSpan()
  {
    return this.columnSpan;
  }

  public void setColumnSpan(int paramInt)
  {
    this.columnSpan = paramInt;
  }

  public int getRow()
  {
    return this.row;
  }

  public void setRow(int paramInt)
  {
    this.row = paramInt;
  }

  public int getRowSpan()
  {
    return this.rowSpan;
  }

  public void setRowSpan(int paramInt)
  {
    this.rowSpan = paramInt;
  }

  public String toString()
  {
    return ColumnRow.valueOf(this.column, this.row).toString();
  }
}